/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.config.entity.login;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 微信登录配置Entity
 * @author JiangYongKang
 * @version 2016-12-14
 */
public class ConfigLoginWechat extends DataEntity<ConfigLoginWechat> {
	
	private static final long serialVersionUID = 1L;
	private Long appid;		// APPID
	private String secret;		// 开放平台
	
	public ConfigLoginWechat() {
		super();
	}

	public ConfigLoginWechat(String id){
		super(id);
	}

	public Long getAppid() {
		return appid;
	}

	public void setAppid(Long appid) {
		this.appid = appid;
	}
	
	@Length(min=0, max=255, message="开放平台长度必须介于 0 和 255 之间")
	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}
	
}